﻿namespace SailHero.Soft.ESB.Communication.ClientAndServer.Communication.Messages
{
    /// <summary>
    /// Represents a message that is sent and received by server and client.
    /// </summary>
    public interface IMessage
    {
        /// <summary>
        /// Unique identified for this message. 
        /// </summary>
        string MessageId { get; }

        /// <summary>
        /// Unique identified for this message. 
        /// </summary>
        string RepliedMessageId { get; set; }


        /// <summary>
        /// 消息的发送者 长度为60字符
        /// </summary>
        string FromMN { get; set; }

        /// <summary>
        /// 消息的接收者 长度为60字符
        /// </summary>
        string To { get; set; }

        /// <summary>
        /// 消息的QN码，用来标识一次通话的过程，长度17字符，
        /// e.g. 20040516010101001
        /// </summary>
        string QN { get; set; }

    }
}
